<div class="clipview">
	<?php 
		$html='<span class="item_thumb">';
		$img=CHtml::encode($data->image);
		if(CHtml::encode($data->image)!=''){
			$html.=	'<img src="'.$data->image.'" alt="'.$data->title.'"/>';
		}
		else{
			$html.=	'<img src="images/no-image.png" alt="'.$data->title.'"/>';
		}
		$link=$data->link;
		switch ($data->type){
			case 0:
				$link=$data->link;
				break;
			case 1:
				$link=array('/film/free', 'id'=>$data->link);
				break;
			case 2:
				$link=array('/clip/view', 'id'=>$data->link);
				break;
			case 3:
				$link=array('/tv/view', 'id'=>$data->link);
				break;
		}
		$html.='</span>
			<span class="item_desc">
				<span class="tit">'.CHtml::encode($data->title).'</span>
				<span class="price">Xem ngay</span>
				<span class="clear"></span>
			</span>
			<span class="clear"></span>';
	?>
	<?php echo CHtml::link($html, $link,array('title'=>$data->title));?>
</div>